<?php
include_once("team_repository.php");
$repTeam= new TeamRepository;
$team_name=$_POST['team_name'];
$divisionID=$_POST['division'];
$password=$_POST['password'];

	$repTeam->createTeam($team_name, $divisionID, $password);
	header('LOCATION:'.$_SERVER["HTTP_REFERER"]);

?>